package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.CourseDao;
import pojo.Course;
import service.CourseManager;

@Service
public class CourseManagerImpl implements CourseManager {
	
	@Autowired
	private CourseDao courseDao;
	
	@Transactional
	@Override
	public Course addInfo(Course info) {
		
		return courseDao.addInfo(info);
	}

	@Transactional
	@Override
	public void addInfoList(List<Course> infoList) {
		courseDao.addInfoList(infoList);

	}

	@Transactional
	@Override
	public Course getResult(Course param) {
		
		return courseDao.getResult(param);
	}

	@Transactional
	@Override
	public List<Course> getResults(String like) {
		
		return courseDao.getResults(like);
	}

	@Transactional
	@Override
	public boolean updateInfo(Course info) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteInfo(Course info) {
		// TODO Auto-generated method stub
		return false;
	}

}
